/*************************************************************************
        > File Name: 04.bit_reverse.c
        > Author: icebear
        > Mail: 3322366195@qq.com
        > Created Time: Tue 18 Jul 2023 11:56:47 AM UTC
 ************************************************************************/

#include <stdio.h>
int main()
{
    int num=0,value=0,bit5=0,bit7=0;
    printf("input one integer\n");
    scanf("%d",&num);
    bit5=(num>>4)%2;
    bit7=(num>>2)%2;
    printf("%d,%d",bit5,bit7);
    num&=~(1<<4);
    num&=~(1<<6);
    num|=bit7<<4;
    num|=bit5<<6;
    printf("the new number is %d\n",num);
}
